#include <bits/stdc++.h>
#include "../../tools/tools.h"
using namespace std;

constexpr int INF = 0x7fffffff; // 无穷大
typedef long long ll;

class Solution {
public:
    long long countCompleteDayPairs(vector<int>& hours) {
        unordered_map<int, long long> map;
        long long ans = 0;
        for (auto& h : hours) {
            h %= 24;
            if (h == 0) ans += map[0];
            else ans += map[24 - h];
            map[h]++;
        }
        return ans;
    }
};

int main(int argc, const char** argv) {
    Solution s;
    return 0;
}
